/**
 * 表格配置
 * 岗位管理 post-manage
 */
const headerConfig = {
  'post-manage': [
    {
      prop: 'name',
      name: '岗位名称',
      minWidth: 100
    },
    {
      prop: 'responsibility',
      name: '职责',
      minWidth: 100
    },
    {
      prop: 'remark',
      name: '描述',
      minWidth: 100
    },
    {
      name: '操作',
      width: 200,
      fixed: 'right',
      thStyle: { 'text-align': 'left' },
      operateList: [
        {
          type: 'btnText',
          label: '编辑',
          id: 'post-manage-edit',
          authId: 'grass-core:post:update',
          config: { type: 'text' }
        },
        {
          type: 'btnText',
          label: '删除',
          id: 'post-manage-delete',
          authId: 'grass-core:post:deleteById',
          style: { color: '#f74a5c' },
          config: { type: 'text' }
        }
      ]
    }
  ]
}

export default {}
export { headerConfig }
